﻿using System;
using System.Collections.Generic;
using Yxinmt.Interface;

namespace Yxinmt.Windows
{
    public class Tab
    {
        public Guid Id { get; set; }
        public string Name { get; set; }

        public string Label { get; set; }

        public bool Selected { get; set; }

        public IWindow Window { get; set; }

        public Dictionary<string, object> Property { get; set; }

        public Controls.ImageTextButton TextBox { get; set; }
        public IComponent TabNamePanel { get; set; }

        public Guid WindowId { get; set; }

        public Entity.FileInfo File { get; set; }

        public Tab SelectFileTab { get; set; }

        public Tab(string label)
        {
            Id = Guid.NewGuid();
            WindowId = Guid.NewGuid();
            Name = string.Format("Tab_{0}", Id.ToString().Replace("-", string.Empty));
            Label = label;
            Selected = true;
        }
    }
}
